package com.nix.web.databases.service.user;

import com.nix.web.databases.mapper.user.RoleMapper;
import com.nix.web.databases.pojo.user.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Create by zhangpe0312@qq.com on 2017/12/16.
 */
@Service
public class RoleService implements RoleMapper{

    @Autowired
    private  RoleMapper roleMapper;

    @Override
    public Role getRoleByUserID(Integer uid, Integer available) throws Exception {
        return roleMapper.getRoleByUserID(uid,available);
    }

    @Override
    public boolean add(Role role) throws Exception {
        return false;
    }

    @Override
    public boolean delete(Integer id) throws Exception {
        return false;
    }

    @Override
    public boolean update(Role role) throws Exception {
        return false;
    }

    @Override
    public Role select(Integer id) throws Exception {
        return null;
    }
}
